## Process this file with automake to produce Makefile.in

bin_PROGRAMS = cynk

cynk_SOURCES = cynk.c cache.c cache.h
if FUSE_OPT_COMPAT
cynk_SOURCES += compat/fuse_opt.c compat/fuse_opt.h
endif

cynk_LDADD = $(CYNK_LIBS)
cynk_CFLAGS = $(CYNK_CFLAGS) -lulockmgr
cynk_CPPFLAGS = -D_REENTRANT -DFUSE_USE_VERSION=26 -DLIBDIR=\"$(libdir)\"

dist_man_MANS = cynk.1

EXTRA_DIST = sshnodelay.c
CLEANFILES = sshnodelay.so

if SSH_NODELAY_SO
all-local: sshnodelay.so

install-exec-local: sshnodelay.so
	test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
	$(INSTALL) -m 755 sshnodelay.so "$(DESTDIR)$(libdir)/sshnodelay.so"

uninstall-local:
	rm -f "$(DESTDIR)$(libdir)/sshnodelay.so"

sshnodelay.so:
	$(CC) -Wall -W -s --shared -fPIC $(sshnodelay_libs) sshnodelay.c -o sshnodelay.so
endif
